Fix ref count on new tag to be 1. Update doc. (#60836)
authorJoshua N Pritikin <vishnu@src.gnome.org>
Fri, 21 Sep 2001 00:48:04 +0000 (00:48 +0000)
committerJoshua N Pritikin <vishnu@src.gnome.org>
Fri, 21 Sep 2001 00:48:04 +0000 (00:48 +0000)
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
ref count on new tag to be 1.  Update doc.  (#60836)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextbuffer.c

index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 55dd7b595d0e5aa9db48a066f6cb288bc26c443c..917f0c211e30605a3d4c341cb912cf0ca4f22c6c 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
+       ref count on new tag to be 1.  Update doc.  (#60836)
+
 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
index 4195610e445203e14db59c6740dac8887ad93482..48fe365726643ee45aed49ae029b024b550bde64 100644 (file)
@@ -1912,8 +1912,8 @@ gtk_text_buffer_place_cursor (GtkTextBuffer     *buffer,
  *
  * Creates a tag and adds it to the tag table for @buffer.
  * Equivalent to calling gtk_text_tag_new () and then adding the
- * tag to the buffer's tag table. The returned tag has its refcount
- * incremented, as if you'd called gtk_text_tag_new ().
+ * tag to the buffer's tag table. The returned tag is owned by
+ * the buffer's tag table, so the ref count will be equal to one.
  *
  * If @tag_name is %NULL, the tag is anonymous.
  *
@@ -1947,6 +1947,8 @@ gtk_text_buffer_create_tag (GtkTextBuffer *buffer,
       va_end (list);
     }
   
+  g_object_unref (tag);
+
   return tag;
 }